﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inspinia_MVC5.Models
{
    public class Admin
    {
        /// <summary>
        /// 后台管理员表
        /// </summary>
        public int AdminId { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name ="姓名")]
        public string AdminName { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name = "用户名")]

        public string AdminUserName { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name = "密码")]

        public string AdminPassword { get; set; }
        [Display(Name = "Root用户")]

        public int? IsRoot { get; set; }

        [StringLength(50)]
        [Display(Name = "授权口令")]

        public string AuthoPwd { get; set; }
        [Display(Name = "上次登录")]

        public DateTime? LoginTime { get; set; }

        [StringLength(50)]
        [Display(Name = "手机")]

        public string AdminPhone { get; set; }
        public string Photo { get; set; }
        [StringLength(100)]
        public string Email { get; set; }
        public virtual ICollection<Email> Emails { get; set; }

    }
}